﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using System.Threading;

namespace FORMS_MechSys
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            frmSplashScreen frmSplash = new frmSplashScreen();
            frmSplash.Show();
            Application.DoEvents();

            //Carregar configurações do usuário

            Thread.Sleep(100);
            frmSplash.Carregando();
            Application.DoEvents();
            Thread.Sleep(100);
            frmSplash.Carregando();
            Application.DoEvents();
            Thread.Sleep(100);
            frmSplash.Carregando();
            Application.DoEvents();
            Thread.Sleep(100);
            frmSplash.Carregando();
            Application.DoEvents();
            Thread.Sleep(100);
            frmSplash.Carregando();
            Application.DoEvents();
            Thread.Sleep(100);
            frmSplash.Carregando();
            Application.DoEvents();
            Thread.Sleep(100);
            frmSplash.Carregando();
            Application.DoEvents();
            Thread.Sleep(100);
            frmSplash.Carregando();
            Application.DoEvents();
            Thread.Sleep(100);
            frmSplash.Carregando();
            Application.DoEvents();
            Thread.Sleep(100);
            frmSplash.Carregando();
            Application.DoEvents();
            Thread.Sleep(100);
            frmSplash.Carregando();
            Application.DoEvents();
            Thread.Sleep(100);
            frmSplash.Carregando();
            Application.DoEvents();
            Thread.Sleep(100);
            frmSplash.Carregando();
            Application.DoEvents();
            Thread.Sleep(100);
            frmSplash.Carregando();
            Application.DoEvents();
            Thread.Sleep(100);
            frmSplash.Carregando();
            Application.DoEvents();
            Thread.Sleep(100);
            frmSplash.Carregando();
            Application.DoEvents();
            Thread.Sleep(100);
            frmSplash.Carregando();
            Application.DoEvents();
            Thread.Sleep(100);
            frmSplash.Carregando();
            Application.DoEvents();
            Thread.Sleep(100);
            frmSplash.Carregando();
            Application.DoEvents();
            Thread.Sleep(100);
            frmSplash.Carregando();
            Application.DoEvents();

            Thread.Sleep(300);
            frmSplash.ExibirLogin();
            //frmSplash.Dispose();
            frmSplash.Visible = false;
            frmSplash.ShowDialog();
            Application.Run(new frmPrincipal());

            Thread.Sleep(300);
        }
    }
}
